package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 配送任务对象 sys_task
 *
 * @author orange
 * @date 2022-04-08
 */
public class SysTask extends BaseEntity {
  private static final long serialVersionUID = 1L;

  /** 配送号 */
  private Long taskId;

  /** 订单创建者 */
  @Excel(name = "订单创建者")
  private Long createrId;

  /** 配送人员 */
  @Excel(name = "配送人员")
  private Long expressId;

  /** 配送状态 */
  @Excel(name = "配送状态")
  private Integer taskStatus;

  /** 订单备注 */
  @Excel(name = "订单备注")
  private String taskRecord;

  /** 配送的地点 */
  @Excel(name = "配送的地点")
  private Long addressId;

  /** 订单的编号 */
  @Excel(name = "订单的编号")
  private Long orderId;

  public Long getTaskId() {
    return taskId;
  }

  public void setTaskId(Long taskId) {
    this.taskId = taskId;
  }

  public Long getCreaterId() {
    return createrId;
  }

  public void setCreaterId(Long createrId) {
    this.createrId = createrId;
  }

  public Long getExpressId() {
    return expressId;
  }

  public void setExpressId(Long expressId) {
    this.expressId = expressId;
  }

  public Integer getTaskStatus() {
    return taskStatus;
  }

  public void setTaskStatus(Integer taskStatus) {
    this.taskStatus = taskStatus;
  }

  public String getTaskRecord() {
    return taskRecord;
  }

  public void setTaskRecord(String taskRecord) {
    this.taskRecord = taskRecord;
  }

  public Long getAddressId() {
    return addressId;
  }

  public void setAddressId(Long addressId) {
    this.addressId = addressId;
  }

  public Long getOrderId() {
    return orderId;
  }

  public void setOrderId(Long orderId) {
    this.orderId = orderId;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("taskId", getTaskId())
        .append("createrId", getCreaterId())
        .append("expressId", getExpressId())
        .append("taskStatus", getTaskStatus())
        .append("taskRecord", getTaskRecord())
        .append("addressId", getAddressId())
        .append("createTime", getCreateTime())
        .append("updateTime", getUpdateTime())
        .append("orderId", getOrderId())
        .toString();
  }
}
